export const checkMoneyFormat = (_rule: any, value: any, callback: any) => {
  if (value === undefined) return callback();
  const money = Number(value);
  if (isNaN(money) || /\.$/.test(value)) {
    console.log('isNaN');
    callback('请输入合法金额');
  }
  const number = value.match(/\.([\d]+)/)?.[1];
  if (number?.length > 2) {
    callback('金额小数点后至多2位');
  }
  callback();
};